﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;
using Module;

namespace BLL
{
    class BUserProfileEnumInfo
    {
        #region 字段

        private DUserProfileEnumInfo APP = new DUserProfileEnumInfo();//数据操作对象
        private static BUserProfileEnumInfo instance;

        #endregion

        #region 公共接口

        /// <summary>
        /// 取得
        /// </summary>
        /// <returns>BUserProfileEnumInfo对象</returns>
        public static BUserProfileEnumInfo getInstance()
        {
            if (instance == null)
            {
                instance = new BUserProfileEnumInfo();
            }
            return instance;
        }
        /// <summary>
        /// 根据用户ProfileName获取所有的枚举值
        /// </summary>
        /// <returns></returns>
        public List<UserProfileEnumInfo> GetProfileEnumByProfileName(string profileName)
        {
            if (string.IsNullOrEmpty(profileName))
                return null;
            return APP.GetProfileEnumByProfileName(profileName);
        }

        #endregion

    }
}
